package org.lanqiao.information;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface ICommentService {

    IPage<Comment> pageListByUserId(Integer pageNum, Integer pageSize, Map<String, String> queryMap);

    void add(Comment comment);

    void logicallyDelete(Integer comId);

    void physicallyDelete(Integer comId);

    void update(Comment comment);

    List<Comment> findAll();

    List<Comment> findAll(Integer comId);

    List<Comment> findList(Map map);

    IPage<Comment> pageAll(Integer pageNum, Integer pageSize);

    IPage<Comment> pageList(Integer pageNum, Integer pageSize, Map<String, String> queryMap);

    void inform(Map map);

    void toggleLike(Map map);

    IPage<Comment> pageAll(Integer pageNum, Integer pageSize, Integer userId);

    void informSuccess(Integer comId);

    void informFail(Integer comId);
}
